package com.ts.content.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ts.common.security.dto.UserLoginDto;
import com.ts.content.dto.CommentDTO;
import com.ts.content.entity.CommentEntity;
import com.ts.content.entity.TopicEntity;
import com.ts.content.mapper.CommentMapper;
import com.ts.content.service.CommentService;
import com.ts.content.vo.CommentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评论表
 *
 * @author 小张@qq.com
 * @since 1.0.0 2023-03-07
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, CommentEntity> implements CommentService {


    @Override
    public List<CommentEntity> commentListPostId(Integer id) {

        //根据id查询到下面的评论和评论人
            List <CommentEntity> list = baseMapper.commentListPostId(id);
        return list;
    }
}